<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
</head>
<body>
<input id="Button1" name="ws_hgo" type="button" value="button" />
<script>
    $(function(){
        $('#Button1').click(function(){
            alert($(this).attr("name"));
        })
    })
</script>
</body>
</html>